<?php

/**
 * ZonasViviendas form.
 *
 * @package    form
 * @subpackage ZonasViviendas
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $
 */
class SearcherForm extends BaseForm
{
  public function configure()
  {
  $personnes = array(2 =>'2 personnes', 4 => '4 personnes', 6 => '6 personnes', 8 => '8 personnes');
  $semaines = array(1 =>'1 semaine', 2 => '2 semaines', 3 => '3 semaines', 4 => '4 semaines');
  $appt_villa = array(2 =>'Indiff.', 1 => 'Villa', 0 =>'Appt.');
  
  $piscine = array(4 =>'Indifferent',2 =>'Piscine priv&eacute;e', 1 => 'Piscine comm.', 0 => 'Pas de piscine');
  $prix = array(0 =>'Entre 500euros et 800euros', 1 => 'Entre 800euros et 1200euros', 2 => 'Entre 1200euros et 1500euros');
    
  $this->widgetSchema['personnes'] =  new sfWidgetFormSelect(array('choices' => $personnes));
  $this->widgetSchema['semaines'] =  new sfWidgetFormSelect(array('choices' => $semaines));
  $this->widgetSchema['appt_villa'] =  new sfWidgetFormSelect(array('choices' => $appt_villa));
  $this->widgetSchema['piscine'] =  new sfWidgetFormSelect(array('choices' => $piscine));
  $this->widgetSchema['prix'] =  new sfWidgetFormSelect(array('choices' => $prix));
  $this->widgetSchema['from_date'] =  new sfWidgetFormInputText();
  $this->widgetSchema->setLabel('from_date', 'Week-end d\'arriv&eacute;e');
  $this->widgetSchema->setLabel('appt_villa', 'Appt./Villa');
  }
}